import request from '@api/request';
import { HttpUrl } from '@api/httpUrl';

// 检测处理订单的合法性
export function checkProcessValidate(orderNo1?: string, orderNo2?: string) {
    return request.get<string[]>(HttpUrl.checkProcessValidate, { params: { orderNo1, orderNo2 } });
}

// 获取所有库存纸
export function getStockList() {
    return request.get<AjaxResponse['stockList']>(HttpUrl.getStockList);
}

// 销毁库存
export function destroyStock(stockId: string) {
    return request.get(HttpUrl.destroyStock, { params: { stockId } });
}
